-- GENERATED SPELL FOR [Shade of Taerar] --


function spell0_15302(pUnit, Event) --@Acid Breath,n/a--
pUnit:FullCastSpellOnTarget(24839,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15302', 45000, 1)
end

function spell1_15302(pUnit, Event) --@Poison Cloud,Self--
pUnit:FullCastSpellOnTarget(24840,pUnit)
pUnit:RegisterEvent('Sorts_15302', 10000, 1)
end

function Sorts_15302(pUnit, Event)
local choix_sorts_15302 = math.random(0, 1)
if choix_sorts_15302 == 0 then
pUnit:RegisterEvent('spell0_15302', 1, 1)
end
if choix_sorts_15302 == 1 then
pUnit:RegisterEvent('spell1_15302', 1, 1)
end
end

function mob15302_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15302', math.random(1500, 3000), 1)
end

function mob15302_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15302_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15302_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15302, 1, 'mob15302_Action')
RegisterUnitEvent(15302, 2, 'mob15302_Leave')
RegisterUnitEvent(15302, 3, 'mob15302_Kill')
RegisterUnitEvent(15302, 4, 'mob15302_Die')
